/**
 * @copyright 2017 sinping.com 北京芯平科技股份有限公司. All rights reserved.
 * 本内容仅限于北京芯平科技股份有限公司内部传阅，禁止外泄以及用于其他的商业目的.
 */
package com.sinping.qh.domain.auth;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘庆沛
 * @since 2017-12-18
 */
public class Role extends Model<Role> {

    private static final long serialVersionUID = 1L;

	private String id;

	/**
	 * 角色名
	 */
	private String role;
    /**
     * 0：正常1：异常
     */
	private Integer status;

	/**
	 * 角色描述
	 */
	private String desc;

	@TableField("create_time")
	private Date createTime;

	@TableField("update_time")
	private Date updateTime;
	/**
	 * app权限资源代表值
	 */
	@TableField("permission")
	private String permission;
	/**
	 * 是否安全员   0:安全员  1：其他
	 */
	@TableField("security")
	private String security;

	/**
	 * 角色拥有的资源id列表
	 */
	@TableField(exist = false)
	private List<String> resources;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public List<String> getResources() {
		return resources;
	}

	public void setResources(List<String> resources) {
		this.resources = resources;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public String getSecurity() {
		return security;
	}

	public void setSecurity(String security) {
		this.security = security;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}


}
